package com.yqg.protection.controller.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yqg.protection.cover.LocalDateTimeConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * projectName:xf-service1
 * author:zxf
 * time:2024/10/15 15:18
 * description:
 */
@Data
public class ImportRecordOperateDto {

    @ExcelProperty(value = "用户ID(必填)", index = 0)
    @ApiModelProperty("用户ID")
    private Long userId;

    @ExcelProperty(value = "操作类型", index = 1)
    @ApiModelProperty("操作类型")
    private String operateType;

    @ExcelProperty(value = "操作内容(必填)", index = 2)
    @ApiModelProperty("操作内容")
    private String content;

    @ExcelProperty(value = "用户IP(必填)", index = 3)
    @ApiModelProperty("用户IP")
    private String userIp;

    @ExcelProperty(value = "操作时间(必填)", index = 4, converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("操作时间")
    private LocalDateTime createdTime;
}
